<%
=begin
apps: nginx
platforms: kubernetes, tanzu-application-catalog
id: customize_server_configuration
title: Customize the server configuration
category: configuration
weight: 20
highlight: 20
=end %>

You can use the serverBlock value to provide a custom server block for NGINX to use. To do this, create a values files with your server block and install the chart using it:

* *custom-server-block.yaml*:

~~~
serverBlock: |-
  server {
    listen 0.0.0.0:8080;
    location / {
      return 200 "hello!";
    }
  }
~~~

> IMPORTANT: The above example is not compatible with enabling Prometheus metrics since it affects the */status* endpoint.
